package edu.bw.dao;

import edu.bw.dto.SelectDeptByConditionForm;
import edu.bw.dto.UpdateDeptForm;
import edu.bw.pojo.Dept;

import java.util.List;
import java.util.Map;

public interface DeptDao {
    List<Map<String, Object>> selectDeptByCondition(SelectDeptByConditionForm selectCondition);

    Long selectDeptByConditionCount(SelectDeptByConditionForm selectCondition);

    int inset(Dept dept);

    List<Map<String, Object>> selectById(Integer id);

    Integer updateDept(UpdateDeptForm updateDeptForm);

    int deleteDeptByIds(List<Integer> ids);

    boolean selectCanDelete(List<Integer> ids);

    List<Map<String, Object>> selectAllDept();
}
